﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Angel.Daos.IManager;
using Angel.Entities;
namespace Angel.Daos.IManager
{
    public interface IUserManager
    {
        IEnumerable<User> GetAll();
        User GetById(int id);
        void Add(User user);
        void Delete(User user);
        void Delete(long userId);
        void Save(User user);
        IEnumerable<User> Find(String userNameContain, String fullNameContain, String emailContain, int groupId, int page, int size, out int total);
        User getByUserName(string Name);
        bool CheckUsername(String name);
        bool CheckEmail(String email);
        IEnumerable<User> Get(int page, int size, out int total);
    }
}
